<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>LiquidFun: b2ParticleGroupDef Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">LiquidFun
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structb2_particle_group_def-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">b2ParticleGroupDef Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="b2_particle_group_8h_source.html">b2ParticleGroup.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a4f007e4276d24a300e6861cc0f1e8a34"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4f007e4276d24a300e6861cc0f1e8a34"></a>
uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a4f007e4276d24a300e6861cc0f1e8a34">flags</a></td></tr>
<tr class="memdesc:a4f007e4276d24a300e6861cc0f1e8a34"><td class="mdescLeft">&#160;</td><td class="mdescRight">The particle-behavior flags (See <a class="el" href="b2_particle_8h.html#a73d3b011893cb87452253b1b67a5cf50" title="The particle type. Can be combined with the | operator. ">b2ParticleFlag</a>). <br/></td></tr>
<tr class="separator:a4f007e4276d24a300e6861cc0f1e8a34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a349832981a11a5834b3bac14b32cc1d8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a349832981a11a5834b3bac14b32cc1d8"></a>
uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a349832981a11a5834b3bac14b32cc1d8">groupFlags</a></td></tr>
<tr class="memdesc:a349832981a11a5834b3bac14b32cc1d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The group-construction flags (See <a class="el" href="b2_particle_group_8h.html#abbd0fdb14991c867363eb3ed0c914eb0" title="The particle group type. Can be combined with the | operator. ">b2ParticleGroupFlag</a>). <br/></td></tr>
<tr class="separator:a349832981a11a5834b3bac14b32cc1d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4763a6bb6fc8c59e8c1cee918088f282"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structb2_vec2.html">b2Vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a4763a6bb6fc8c59e8c1cee918088f282">position</a></td></tr>
<tr class="separator:a4763a6bb6fc8c59e8c1cee918088f282"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6edb0e2185ca63ffc3f83a914040616"><td class="memItemLeft" align="right" valign="top">float32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#ad6edb0e2185ca63ffc3f83a914040616">angle</a></td></tr>
<tr class="separator:ad6edb0e2185ca63ffc3f83a914040616"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acba1075b361641d6984c448cbb95fc8a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acba1075b361641d6984c448cbb95fc8a"></a>
<a class="el" href="structb2_vec2.html">b2Vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#acba1075b361641d6984c448cbb95fc8a">linearVelocity</a></td></tr>
<tr class="memdesc:acba1075b361641d6984c448cbb95fc8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The linear velocity of the group's origin in world co-ordinates. <br/></td></tr>
<tr class="separator:acba1075b361641d6984c448cbb95fc8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d3f92839a7940d74b00b54d1b8281a8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8d3f92839a7940d74b00b54d1b8281a8"></a>
float32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a8d3f92839a7940d74b00b54d1b8281a8">angularVelocity</a></td></tr>
<tr class="memdesc:a8d3f92839a7940d74b00b54d1b8281a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The angular velocity of the group. <br/></td></tr>
<tr class="separator:a8d3f92839a7940d74b00b54d1b8281a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ec788b26160e46cd8874ed1f980e216"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ec788b26160e46cd8874ed1f980e216"></a>
<a class="el" href="classb2_particle_color.html">b2ParticleColor</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a4ec788b26160e46cd8874ed1f980e216">color</a></td></tr>
<tr class="memdesc:a4ec788b26160e46cd8874ed1f980e216"><td class="mdescLeft">&#160;</td><td class="mdescRight">The color of all particles in the group. <br/></td></tr>
<tr class="separator:a4ec788b26160e46cd8874ed1f980e216"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77c3ac47ae906e34e7f3fecf7b8f7aad"><td class="memItemLeft" align="right" valign="top">float32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a77c3ac47ae906e34e7f3fecf7b8f7aad">strength</a></td></tr>
<tr class="separator:a77c3ac47ae906e34e7f3fecf7b8f7aad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97817383da54ee1b44c635de2ff272ce"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97817383da54ee1b44c635de2ff272ce"></a>
const <a class="el" href="classb2_shape.html">b2Shape</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a97817383da54ee1b44c635de2ff272ce">shape</a></td></tr>
<tr class="memdesc:a97817383da54ee1b44c635de2ff272ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">The shape where particles will be added. <br/></td></tr>
<tr class="separator:a97817383da54ee1b44c635de2ff272ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d5b5ea15b45f9bc9c8b41840915b495"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5d5b5ea15b45f9bc9c8b41840915b495"></a>
const <a class="el" href="classb2_shape.html">b2Shape</a> *const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a5d5b5ea15b45f9bc9c8b41840915b495">shapes</a></td></tr>
<tr class="memdesc:a5d5b5ea15b45f9bc9c8b41840915b495"><td class="mdescLeft">&#160;</td><td class="mdescRight">A array of shapes where particles will be added. <br/></td></tr>
<tr class="separator:a5d5b5ea15b45f9bc9c8b41840915b495"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3164082e9b1b3bf8d7bfc4d52fd52db5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3164082e9b1b3bf8d7bfc4d52fd52db5"></a>
int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a3164082e9b1b3bf8d7bfc4d52fd52db5">shapeCount</a></td></tr>
<tr class="memdesc:a3164082e9b1b3bf8d7bfc4d52fd52db5"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of shapes. <br/></td></tr>
<tr class="separator:a3164082e9b1b3bf8d7bfc4d52fd52db5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9882ac9001f1a6c279385b65b7f13d0"><td class="memItemLeft" align="right" valign="top">float32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#ae9882ac9001f1a6c279385b65b7f13d0">stride</a></td></tr>
<tr class="separator:ae9882ac9001f1a6c279385b65b7f13d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a243ab984330b83be6febd8cd6a6384a9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a243ab984330b83be6febd8cd6a6384a9"></a>
int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a243ab984330b83be6febd8cd6a6384a9">particleCount</a></td></tr>
<tr class="memdesc:a243ab984330b83be6febd8cd6a6384a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of particles in addition to ones added in the shape. <br/></td></tr>
<tr class="separator:a243ab984330b83be6febd8cd6a6384a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7643e86cefe12b1468faa5e871a5d81"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7643e86cefe12b1468faa5e871a5d81"></a>
const <a class="el" href="structb2_vec2.html">b2Vec2</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#ae7643e86cefe12b1468faa5e871a5d81">positionData</a></td></tr>
<tr class="memdesc:ae7643e86cefe12b1468faa5e871a5d81"><td class="mdescLeft">&#160;</td><td class="mdescRight">The initial positions of the particleCount particles. <br/></td></tr>
<tr class="separator:ae7643e86cefe12b1468faa5e871a5d81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4caa3e45a21ef860060fddc994a07828"><td class="memItemLeft" align="right" valign="top">float32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a4caa3e45a21ef860060fddc994a07828">lifetime</a></td></tr>
<tr class="separator:a4caa3e45a21ef860060fddc994a07828"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6adc12d9288cc77ace1df5c04f9fa5cd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6adc12d9288cc77ace1df5c04f9fa5cd"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#a6adc12d9288cc77ace1df5c04f9fa5cd">userData</a></td></tr>
<tr class="memdesc:a6adc12d9288cc77ace1df5c04f9fa5cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Use this to store application-specific group data. <br/></td></tr>
<tr class="separator:a6adc12d9288cc77ace1df5c04f9fa5cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab734a88e0aab7a4aa48e6acbee70e722"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab734a88e0aab7a4aa48e6acbee70e722"></a>
<a class="el" href="classb2_particle_group.html">b2ParticleGroup</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_particle_group_def.html#ab734a88e0aab7a4aa48e6acbee70e722">group</a></td></tr>
<tr class="memdesc:ab734a88e0aab7a4aa48e6acbee70e722"><td class="mdescLeft">&#160;</td><td class="mdescRight">An existing particle group to which the particles will be added. <br/></td></tr>
<tr class="separator:ab734a88e0aab7a4aa48e6acbee70e722"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A particle group definition holds all the data needed to construct a particle group. You can safely re-use these definitions. </p>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ad6edb0e2185ca63ffc3f83a914040616"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float32 b2ParticleGroupDef::angle</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The world angle of the group in radians. Rotates the shape by an angle equal to the value of angle. </p>

</div>
</div>
<a class="anchor" id="a4caa3e45a21ef860060fddc994a07828"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float32 b2ParticleGroupDef::lifetime</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Lifetime of the particle group in seconds. A value &lt;= 0.0f indicates a particle group with infinite lifetime. </p>

</div>
</div>
<a class="anchor" id="a4763a6bb6fc8c59e8c1cee918088f282"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structb2_vec2.html">b2Vec2</a> b2ParticleGroupDef::position</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The world position of the group. Moves the group's shape a distance equal to the value of position. </p>

</div>
</div>
<a class="anchor" id="a77c3ac47ae906e34e7f3fecf7b8f7aad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float32 b2ParticleGroupDef::strength</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The strength of cohesion among the particles in a group with flag b2_elasticParticle or b2_springParticle. </p>

</div>
</div>
<a class="anchor" id="ae9882ac9001f1a6c279385b65b7f13d0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float32 b2ParticleGroupDef::stride</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The interval of particles in the shape. If it is 0, b2_particleStride * particleDiameter is used instead. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="b2_particle_group_8h_source.html">b2ParticleGroup.h</a></li>
</ul>
</div><!-- contents -->
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46159502-1', 'auto');
ga('create', 'UA-49880327-7', 'auto', {'name': 'liquidFunTracker'});
ga('send', 'pageview');
ga('liquidFunTracker.send', 'pageview');
</script>
</body>
</html>
